//
//  SEGProfileModel.m
//  SEGWebView_Example
//
//  Created by 山刘 on 2020/3/13.
//  Copyright © 2020 samlau7245@icloud.com. All rights reserved.
//

#import "SEGProfileModel.h"
@implementation SEGProfileModel
-(instancetype)init{
    if (self == [super init]) {
        _deviceId = @"AAAAAAAA";
        _source = @"2";
        _versionCode = @"";
    }
    return self;
}
-(void)setJobCommunity:(NSString *)jobCommunity{
    _jobCommunity = jobCommunity;
    _communityId = _jobCommunity;
}
@end

static id _profileManager;
static dispatch_once_t onceToken;
@implementation SEGProfileManager
+(instancetype)sharedManager{
    dispatch_once(&onceToken, ^{
        _profileManager = [[self alloc] init];
    });
    return _profileManager;
}

-(instancetype)init{
    if (self == [super init]) {
        _profile = [SEGProfileModel new];
    }
    return self;
}
@end
